package org.hang.gift.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class UpdateNumDTO {

    @NotNull(message = "网络异常,请刷新重试!")
    private Long shopCarId;

    @NotNull(message = "网络异常,请刷新重试!")
    private Long skuId;

    @Min(value = 1)  //最小为1个
    private Integer num;

    private Long userId = 16L;

}
